import {observable, action, computed} from 'mobx';

export default class CouterStore {
    @observable
    count = 0;

    @action
    inc(value: number) {
        this.count += value;
    }

    @computed
    get total() {
        return this.count * 10;
    }
}